<template>
	<view class="StepBar">
		<view v-for="(item,index) in TabList" :key="index" class="Item">
			<view class="variables" :style="{backgroundColor:TabIndex >= index ?'#73F0EA':'#e9e9e9',color:TabIndex >= index ?'#000000':'#ffffff'}">
				{{index + 1}}
			</view>
			<view class="size" :style="{Color:TabIndex >= index ?'#000000':'#B6B6B6'}">
				{{item}}
			</view>
			<view class="transverse_line" v-if="index < 2">
				
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props: {
			TabIndex: {
				type: Number,
				default: 0,
				required: true
			}
		},
		data(){
			return{
				TabList:[
					'基础信息',
					'实名信息',
					'联系信息'
				]
			}
		},
		methods:{
			
		}
	}
</script>

<style lang="scss" scoped>
	.StepBar{
		width: 750rpx;
		height: 88rpx;
		background: #ffffff;
		box-shadow: 0rpx 8rpx 28rpx 0rpx rgba(199,205,179,0.15); 
		padding: 0 44rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		.Item{
			display: flex;
			flex-direction: row;
			align-items: center;
			.variables{
				width: 38rpx;
				height: 38rpx;
				background: #e9e9e9;
				border-radius: 50%;
				font-size: 24rpx;
				font-family: DIN, DIN-Bold;
				font-weight: 700;
				text-align: left;
				color: #ffffff;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-right: 20rpx;
			}
			.size{
				font-size: 24rpx;
				font-weight: 500;
				color: #b6b6b6;
			}
			.transverse_line{
				width: 62rpx;
				height: 0rpx;
				border: 1rpx solid #999999;
				margin: 0 19rpx;
			}
		}
	}
</style>